﻿@model EM.OA.Portal.Models.MemoryModels
@{
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}
<script type="text/javascript" src="~/Scripts/page/DailyWork/Memory.js"></script>
<script src="~/Scripts/ckeditor/ckeditor.js" type="text/javascript"></script>
<div>
    @*list*@
    <table id="list" class="easyui-datagrid" toolbar="#toolbar">
    </table>
    <div id="toolbar">
        <a href="#" class="easyui-linkbutton" iconcls="icon-add" plain="true" onclick="add()">增加</a>
        <a href="#" class="easyui-linkbutton" iconcls="icon-edit" plain="true" onclick="edit()">修改</a>
        <a href="#" class="easyui-linkbutton" iconcls="icon-remove" plain="true" onclick="del()">删除</a>
        @*<div id="tb" style="padding: 3px">
            <span>@Html.LabelFor(m => m.WorkPlanName)</span>
            <input id="WorkPlanName" style="line-height: 26px; border: 1px solid #ccc">
            <span>@Html.LabelFor(m => m.WorkPlanType)</span>
            <input id="WorkPlanType" style="line-height: 26px; border: 1px solid #ccc">
            <a href="#" class="easyui-linkbutton" plain="true" onclick="doSearch()">Search</a>
        </div>*@
    </div>

    @*Detail*@
    <div id="dlg" class="easyui-dialog" style="width: 800px; height: 500px; padding: 10px 20px"
        closed="true" buttons="#dlg-buttons" modal="true" resizable="true"
       data-options="
        onClose: function () {
            //解决弹出窗口关闭后，验证消息还显示在最上面
            $('.validatebox-tip').remove();
        }
    "
        >
        <div id="dlg-buttons">
            <a href="#" class="easyui-linkbutton" iconcls="icon-ok" onclick="save()">保存</a>
            <a href="#" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">取消</a>
        </div>
        <form id="fm" method="post">
            @Html.Hidden("MemoryID")
             @Html.Hidden("RemindUserID", ViewData["RemindUserID"])
            <div>
                @Html.LabelFor(m => m.Content)
                @*<input name="Content" id="Content" class="easyui-validatebox" style="width: 700px; height: 250px;" data-options="required:true">*@
                <input type="hidden" id="Content" name="Content"/>
                <textarea id="editor" name="editor"  style="width: 700px; height: 250px;">
			    </textarea>
                <script type="text/javascript">
                    CKEDITOR.replace('editor', {
                        toolbar: [
                        ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink'],
                        ['FontSize', 'TextColor', 'BGColor']
                        ]
                    });
                </script>
@*                <iframe id="frmRemind" style="border: 0px; width: 100%;"></iframe>*@
                                        @Html.Partial("Remind")

            </div>
        </form>
    </div>

</div>
